package com.example.whm.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PreOrder implements Serializable{

	String id;
	String user_id;
	String user_name;
	String contactname;
	String city_area;
	String address;
	String phone;
	String detail_date;
	
   /* List<String> ids;*/
    List<EntityBuy> list=new ArrayList<EntityBuy>();
    int price=0;
    int num;
    int preorder_pirce=0;
    String createtime=new Date().toLocaleString();
    
    
    
    
	public String getContactname() {
		return contactname;
	}
	public void setContactname(String contactname) {
		this.contactname = contactname;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUser_id() {
		return user_id;
	}
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}
	public String getUser_name() {
		return user_name;
	}
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
	public String getCity_area() {
		return city_area;
	}
	public void setCity_area(String city_area) {
		this.city_area = city_area;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public int getPreorder_pirce() {
		return preorder_pirce;
	}
	public void setPreorder_pirce(int preorder_pirce) {
		this.preorder_pirce = preorder_pirce;
	}
	public String getCreatetime() {
		return createtime;
	}
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	public List<EntityBuy> getList() {
		return list;
	}
	public void setList(List<EntityBuy> list) {
		this.list = list;
	}
	public String getDetail_date() {
		return detail_date;
	}
	public void setDetail_date(String detail_date) {
		this.detail_date = detail_date;
	}
	
	/*public List<String> getIds() {
		return ids;
	}
	public void setIds(List<String> ids) {
		this.ids = ids;
	}*/
	
	
	public PreOrder(String user_id, String user_name,String contactname, String city_area,
			String address, String phone, String detail_date,
			List<EntityBuy> list, int price, int preorder_pirce,int num) {
		super();
		this.user_id = user_id;
		this.user_name = user_name;
		this.contactname = contactname;
		this.city_area = city_area;
		this.address = address;
		this.phone = phone;
		this.detail_date = detail_date;
		this.list = list;
		this.price = price;
		this.preorder_pirce = preorder_pirce;
		this.num=num;
	}
	public PreOrder() {
		super();
		// TODO Auto-generated constructor stu
	
	}
    
	
}
